/*
 * vis.c - an implementation of vis command
 */

#include <stdio.h>

int
main(void)
{
  int ch;
  while ((ch = getchar()) != EOF) {
    if (ch == '\n' || ch == '\t') {
      putchar(ch);
    } else if (ch < 32) {
      putchar('\\');
      putchar('^');
      putchar(ch + '@');
    } else if (ch > 126) {
      putchar('\\');
      putchar('^');
      putchar('?');
    } else {
      putchar(ch);
    }
  }
  return 0;
}
